<?php

// +----------------------------------------------------------------------
// | 接口设置
// +----------------------------------------------------------------------

return [
    'user'    => [
        'code' => 'User',
        'method' => [
            'login' => [
                'code' => 'login',
                'is_login' => false
            ],
            'smslogin' => [
                'code' => 'smsLogin',
                'is_login' => false
            ],
            'wxapplogin1' => [
                'code' => 'wxappLogin1',
                'is_login' => false
            ],
            'wxapplogin2' => [
                'code' => 'wxappLogin2',
                'is_login' => false
            ],
            'sms' => [
                'code' => 'sms',
                'is_login' => false
            ],
            'logout' => [
                'code' => 'logout',
                'is_login' => true
            ],
            'reg' => [
                'code' => 'reg',
                'is_login' => false
            ],
            'info' => [
                'code' => 'info',
                'is_login' => true
            ],
            'changeavatar' => [
                'code' => 'changeAvatar',
                'is_login' => true
            ],
            'editinfo' => [
                'code' => 'editInfo',
                'is_login' => true
            ],
            'addgoodsbrowsing' => [
                'code' => 'addGoodsBrowsing',
                'is_login' => true
            ],
            'delgoodsbrowsing' => [
                'code' => 'delGoodsBrowsing',
                'is_login' => true
            ],
            'goodsbrowsing' => [
                'code' => 'goodsBrowsing',
                'is_login' => true
            ],
            'goodscollection' => [
                'code' => 'goodsCollection',
                'is_login' => true
            ],
            'goodscollectionlist' => [
                'code' => 'goodsCollectionList',
                'is_login' => true
            ],
            'saveusership' => [
                'code' => 'saveUserShip',
                'is_login' => true
            ],
            'vuesaveusership' => [
                'code' => 'vueSaveUserShip',
                'is_login' => true
            ],
            'getshipdetail' => [
                'code' => 'getShipDetail',
                'is_login' => true
            ],
            'setdefship' => [
                'code' => 'setDefShip',
                'is_login' => true
            ],
            'editship' => [
                'code' => 'editShip',
                'is_login' => true
            ],
            'removeship' => [
                'code' => 'removeShip',
                'is_login' => true
            ],
            'getusership' => [
                'code' => 'getUserShip',
                'is_login' => true
            ],
            'getallname' => [
                'code' => 'getAllName',
                'is_login' => false
            ],
            'getareaid' => [
                'code' => 'getAreaId',
                'is_login' => false
            ],
            'pay' => [
                'code' => 'pay',
                'is_login' => true,
            ],
            'orderevaluate' => [
                'code' => 'orderEvaluate',
                'is_login' => true,
            ],
            'getuserdefaultship' => [
                'code' => 'getUserDefaultShip',
                'is_login' => true,
            ],
            'issign' => [
                'code' => 'isSign',
                'is_login' => true
            ],
            'sign' => [
                'code' => 'sign',
                'is_login' => true
            ],
            'pointlog' => [
                'code' => 'pointLog',
                'is_login' => true
            ],
            'getstorename' => [
                'code' => 'getStoreName',
                'is_login' => false
            ],
            'getsellersetting' => [
                'code' => 'getSetting',
                'is_login' => false
            ],
            'getdefaultbankcard' => [
                'code' => 'getDefaultBankCard',
                'is_login' => true
            ],
            'getbankcardlist' => [
                'code' => 'getBankCardList',
                'is_login' => true
            ],
            'addbankcard' => [
                'code' => 'addBankCard',
                'is_login' => true
            ],
            'removebankcard' => [
                'code' => 'removeBankCard',
                'is_login' => true
            ],
            'setdefaultbankcard' => [
                'code' => 'setDefaultBankCard',
                'is_login' => true
            ],
            'getbankcardinfo' => [
                'code' => 'getBankCardInfo',
                'is_login' => true
            ],
            'getbankcardorganization' => [
                'code' => 'getBankCardOrganization',
                'is_login' => false
            ],
            'editpwd' => [
                'code' => 'editPwd',
                'is_login' => true
            ],
            'forgotpwd' => [
                'code' => 'forgotPwd',
                'is_login' => true
            ],
            'balancelist' => [
                'code' => 'userBalance',
                'is_login' => true
            ],
            'recommend' => [
                'code' => 'recommend',
                'is_login' => true
            ],
            'sharecode' => [
                'code' => 'sharecode',
                'is_login' => true
            ],
            'cash' => [
                'code' => 'cash',
                'is_login' => true
            ],
            'cashlist' => [
                'code' => 'cashList',
                'is_login' => true
            ]
        ]
    ],
    
    'advert' => [
        'code' => 'Advert',
        'method' => [
            'positionList' => [
                'code' => 'positionList',
                'is_login' => false
            ],
            'getAdvertList' => [
                'code' => 'getAdvertList',
                'is_login' => false
            ]
        ],
    ],

    'articles' => [
        'code' => 'Articles',
        'method' => [
            'getArticleType' => [
                'code' => 'getArticleType',
                'is_login' => false
            ],
            'getArticleList' => [
                'code' => 'getArticleList',
                'is_login' => false
            ],
            'getArticleDetail' => [
                'code' => 'getArticleDetail',
                'is_login' => false
            ]
        ]
    ],

    'brand' => [
        'code' => 'Brand',
        'method' => [
            'brandList' => [
                'code' => 'brandList',
                'is_login' => false
            ]
        ]
    ],

    'coupon' => [
        'code' => 'Coupon',
        'method' => [
            'couponlist' =>[
               'code' => 'couponList',
               'is_login' => false
            ],
            'coupondetail' => [
                'code' => 'couponDetail',
                'is_login' => false
            ],
            'getcoupon' => [
                'code' => 'getCoupon',
                'is_login' => true,
            ],
            'usercoupon' => [
                'code' => 'userCoupon',
                'is_login' => true
            ],
        ]
    ],

    'notice' => [
        'code' => 'Notice',
        'method' => [
            'noticeList' => [
                'code' => 'noticeList',
                'is_login' => false
            ],
            'noticeType' =>[
                'code' => 'noticeType',
                'is_login' => false
            ],
            'noticeInfo' => [
                'code' => 'noticeInfo',
                'is_login' => false
            ]
        ]
    ],

    //购物车
    'cart' => [
        'code' => 'Cart',
        'method' => [
            'add' => [
                'code' => 'add',
                'is_login' => true
            ],
            'del' => [
                'code' => 'del',
                'is_login' => true
            ],
            'getlist' => [
                'code' => 'getList',
                'is_login' => true
            ],
            'setnums' => [
                'code' => 'setNums',
                'is_login' => true
            ]
        ]
    ],

    //商品分类
    'categories' => [
        'code' => 'Categories',
        'method' => [
            'gettopcat' => [
                'code' => 'getTopCat',
                'is_login' => false
            ],
            'getchildcat' => [
                'code' => 'getChildCat',
                'is_login' => false
            ],
            'getallcat' => [
                'code' => 'getAllCat',
                'is_login' => false
            ]
        ]
    ],

    //订单模块
    'order' => [
        'code' => 'Order',
        'method' => [
            'cancel' => [
                'code' => 'cancel',
                'is_login' => true
            ],
            'del' => [
                'code' => 'del',
                'is_login' => true
            ],
            'details' => [
                'code' => 'details',
                'is_login' => true
            ],
            'confirm' => [
                'code' => 'confirm',
                'is_login' => true
            ],
            'getlist' => [
                'code' => 'getList',
                'is_login' => true
            ],
            'create' => [
                'code' => 'create',
                'is_login' => true
            ],
            'getship' => [
                'code' => 'getShip',
                'is_login' => true
            ],
            'getorderlist' => [
                'code' => 'getOrderList',
                'is_login' => true
            ],
            'getorderstatusnum' => [
                'code' => 'getOrderStatusNum',
                'is_login' => true
            ],
            'aftersaleslist' => [
                'code' => 'aftersalesList',
                'is_login' => true
            ],
            'aftersalesinfo'=> [
                'code' => 'aftersalesInfo',
                'is_login' => true,
            ],
            'aftersalesstatus' => [
                'code' => 'aftersalesStatus',
                'is_login' => true
            ],
            'addaftersales' => [
                'code' => 'addAftersales',
                'is_login' => true
            ],
            'sendreship' => [
                'code' => 'sendReship',
                'is_login' => true
            ],
            'iscomment' => [
                'code' => 'isComment',
                'is_login' => true
            ],
            'logistics' => [
                'code' => 'logistics',
                'is_login' => true
            ],
            'getcashpooling' => [
                'code' => 'getCashPooling',
                'is_login' => false
            ]
        ]
    ],

    //商品
    'goods' => [
        'code' => 'Goods',
        'method' => [
            'getlist' => [
                'code' => 'getList',
                'is_login' => false
            ],
            'getdetial' => [
                'code' => 'getDetial',
                'is_login' => false
            ],
            'getskudetial' => [
                'code' => 'getSkuDetial',
                'is_login' => false
            ],
            'getgoodsparams' => [
                'code' => 'getGoodsParams',
                'is_login' => false
            ],
            'getproductinfo' => [
                'code' => 'getProductInfo',
                'is_login' => false
            ],
            'getgoodscomment' => [
                'code' => 'getGoodsComment',
                'is_login' => false
            ]
        ]
    ],
    //支付单
    'payments' => [
        'code' => 'Payments',
        'method' => [
            'getlist' => [
                'code' => 'getList',
                'is_login' => false
            ],
            'getinfo' => [
                'code' => 'getInfo',
                'is_login' => true
            ],
        ]
    ],
    'images' => [
        'code' => 'Images',
        'method' => [
            'upload' => [
                'code' => 'upload',
                'is_login' => false
            ],
        ]
    ],

    //商户门店列表
    'store' => [
        'code' => 'Store',
        'method'    =>  [
            'getstore' => [
                'code' => 'getStore',
                'is_login' => false
            ],
        ]
    ]
];